package com.qjd.girl.expection;

import com.qjd.girl.enums.ResultEnum;

/**
 * Created by qiangjindong
 * 2018-08-04 11:01
 */
public class GirlExpection extends RuntimeException {

    private Integer code;

    public GirlExpection(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
